package com.yuan.common.redis.constant;

public interface CacheConstants {
    /**
     * 缓存分隔符
     */
    String SPLIT = ":";
    /**
     * 缓存公共前缀
     */
    String PREFIX = "yuan" + SPLIT;
    /**
     * 验证码
     */
    String DEFAULT_CODE_KEY = PREFIX + "sms" + SPLIT;
    /**
     * 用户资产锁
     */
    String MEMBER_BALANCE_COIN_KEY = PREFIX + "balance" + SPLIT;
    /**
     * 用户合约交易对锁
     */
    String MEMBER_PAIRS_KEY = PREFIX + "pairs" + SPLIT;
    /**
     * 币种涨跌幅、最新价、最高价、最低价、成交量等JSON
     */
    String PRICE_HIG_LOW_KEY = PREFIX + "price" + SPLIT;
    /**
     * 撮合单
     */
    String TOKEN_ORDER_MATCH_KEY = PREFIX + "match" + SPLIT;
    /**
     * 普通委托单
     */
    String TOKEN_ORDER_CUSTOM_KEY = PREFIX + "custom" + SPLIT;

    /**
     * 用户挂单交易对锁
     */
    String MEMBER_ENTRUST_PAIRS_KEY = PREFIX + "entrust_pairs" + SPLIT;
    /**
     * 币币撮合单
     */
    String ENTRUST_ORDER_MATCH_KEY = PREFIX + "entrust" + SPLIT;
    /**
     * 币币撮合实时成交单
     */
    String ENTRUST_ORDER_END_KEY = PREFIX + "entrust_end" + SPLIT;
    /**
     * K线缓存key
     */
    String KLINE_KEY = PREFIX + "kline" + SPLIT;
}
